package com.example.jt_manager_web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/page")
public class PageController {
    @RequestMapping("index")
    public String showIndex(){
        return "index";
    }

    @RequestMapping("login")
    public String showLogin(){
        return "login";
    }

    //新增商品
    @RequestMapping("item_add")
    public String itemAdd(){
        return "item-add";
    }

    //查询商品
    @RequestMapping("item_list")
    public String itemList(){
        return "item-list";
    }

    //编辑商品
    @RequestMapping("item_edit")
    public String itemEdit(){
        return "item-edit";
    }

    //规格参数
    @RequestMapping("item_param_list")
    public String itemParamList(){
        return "item-param-list";
    }
    //增加规格
    @RequestMapping("item_param_add")
    public String itemParamAdd(){
        return "item-param-add";
    }

    //内容分类
    @RequestMapping("content_category")
    public String contentCat(){
        return "content-category";
    }

    //内容管理
    @RequestMapping("content")
    public String content(){
        return "content";
    }

    //增加内容
    @RequestMapping("content_add")
    public String contentAdd(){
        return "content-add";
    }

    //编辑内容
    @RequestMapping("content_edit")
    public String contenEditt(){
        return "content-edit";
    }
}
